<template>
  <div class="quick-nav">
    <div class="nav-container">
      <router-link 
        v-for="item in navItems" 
        :key="item.link"
        :to="item.link"
        class="nav-item"
      >
        <i class="iconfont" :class="item.icon"></i>
        <span class="nav-text">{{ item.text }}</span>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'QuickNav',
  props: {
    navItems: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style scoped>
.quick-nav {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 15px 0;
  border-radius: 4px;
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  padding: 5px 10px;
  transition: all 0.3s;
}

.nav-item:hover {
  color: #409EFF;
  transform: translateY(-3px);
}

.nav-item i {
  font-size: 24px;
  margin-bottom: 5px;
}

.nav-text {
  font-size: 14px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .nav-item {
    width: 20%;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .nav-item {
    width: 25%;
  }
  
  .nav-item i {
    font-size: 20px;
  }
  
  .nav-text {
    font-size: 12px;
  }
}
</style>